package com.example.bankend.service;

import com.example.bankend.entity.Card;
import com.example.bankend.entity.User;

import java.util.List;

/**
 * @author luolinila
 * @date 2025/6/16 21:33
 */
public interface UserService {
    public int sendCaptcha(String phone);
    public Long create (Long adminID, String adminName, String adminPass, String cunstomerName, String PID, String telephone, String password);
    public User getUserByCunstomerID(Long cunstomerID);
    public Long loginByPIDAndPass(String phone, String pass);
    public Long deleteUser(Long adminID, String adminName, String adminPass, Long customerID);
    public User getAdmin();
    public Long updateUser(Long adminID, String adminName, String adminPass, Long customerID, String pass, String telephone, String address);
    public Long selectByID(Long adminID, String adminName, String adminPass, Long customerId);
    public List<User> selectLikeByName(Long adminID, String adminName, String adminPass, String customerName);
    public Long selectByPID(Long adminID, String adminName, String adminPass, String pid);
    public Long selectByPhone(Long adminID, String adminName, String adminPass, String telephone);
    Long recoverUserByID(Long customerID);
    List<User> selectAll(Long adminID, String adminName, String adminPass);
    User getUserByCunstomerPID(String PID);
    User loginAdmin(Long adminID, String adminName, String adminPass);
    public int createCardAuto(Long CustomerID);
    List<User> getAllUser(Long adminID, String adminName, String adminPass);
    List<Long>  getAllCustomerID();
    List<String> selectAllCardID();
}
